package com.macrohard.mapper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName announce
 */
@TableName(value ="announce")
public class Announce implements Serializable {
    /**
     * 
     */
    @TableId(value = "an_id", type = IdType.AUTO)
    private Integer anId;

    /**
     * 
     */
    @TableField(value = "an_title")
    private String anTitle;

    /**
     * 
     */
    @TableField(value = "an_time")
    private Date anTime;

    /**
     * 
     */
    @TableField(value = "an_content")
    private String anContent;

    /**
     * 
     */
    @TableField(value = "an_status")
    private Integer anStatus;

    /**
     * 
     */
    @TableField(value = "an_tu")
    private Integer anTu;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getAnId() {
        return anId;
    }

    /**
     * 
     */
    public void setAnId(Integer anId) {
        this.anId = anId;
    }

    /**
     * 
     */
    public String getAnTitle() {
        return anTitle;
    }

    /**
     * 
     */
    public void setAnTitle(String anTitle) {
        this.anTitle = anTitle;
    }

    /**
     * 
     */
    public Date getAnTime() {
        return anTime;
    }

    /**
     * 
     */
    public void setAnTime(Date anTime) {
        this.anTime = anTime;
    }

    /**
     * 
     */
    public String getAnContent() {
        return anContent;
    }

    /**
     * 
     */
    public void setAnContent(String anContent) {
        this.anContent = anContent;
    }

    /**
     * 
     */
    public Integer getAnStatus() {
        return anStatus;
    }

    /**
     * 
     */
    public void setAnStatus(Integer anStatus) {
        this.anStatus = anStatus;
    }

    /**
     * 
     */
    public Integer getAnTu() {
        return anTu;
    }

    /**
     * 
     */
    public void setAnTu(Integer anTu) {
        this.anTu = anTu;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Announce other = (Announce) that;
        return (this.getAnId() == null ? other.getAnId() == null : this.getAnId().equals(other.getAnId()))
            && (this.getAnTitle() == null ? other.getAnTitle() == null : this.getAnTitle().equals(other.getAnTitle()))
            && (this.getAnTime() == null ? other.getAnTime() == null : this.getAnTime().equals(other.getAnTime()))
            && (this.getAnContent() == null ? other.getAnContent() == null : this.getAnContent().equals(other.getAnContent()))
            && (this.getAnStatus() == null ? other.getAnStatus() == null : this.getAnStatus().equals(other.getAnStatus()))
            && (this.getAnTu() == null ? other.getAnTu() == null : this.getAnTu().equals(other.getAnTu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAnId() == null) ? 0 : getAnId().hashCode());
        result = prime * result + ((getAnTitle() == null) ? 0 : getAnTitle().hashCode());
        result = prime * result + ((getAnTime() == null) ? 0 : getAnTime().hashCode());
        result = prime * result + ((getAnContent() == null) ? 0 : getAnContent().hashCode());
        result = prime * result + ((getAnStatus() == null) ? 0 : getAnStatus().hashCode());
        result = prime * result + ((getAnTu() == null) ? 0 : getAnTu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", anId=").append(anId);
        sb.append(", anTitle=").append(anTitle);
        sb.append(", anTime=").append(anTime);
        sb.append(", anContent=").append(anContent);
        sb.append(", anStatus=").append(anStatus);
        sb.append(", anTu=").append(anTu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}